package com.example.test.自己的责任连;

import com.example.test.自己的责任连.具体执行类.HandelOne;
import com.example.test.自己的责任连.具体执行类.HandelThree;
import com.example.test.自己的责任连.具体执行类.HandelTwo;

public class 责任连测试 {
    public static void main(String[] args) {
        int num = 8;
        HandelChain handelChain = new HandelChain();
        handelChain.addChain(new HandelOne());
        handelChain.addChain(new HandelTwo());
        handelChain.addChain(new HandelThree());
        handelChain.chainDoHandel(num);

    }
}
